package cn.powertime.evaluation.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(description="学习进度记录")
public class WebReqRecordVo implements Serializable {

    /**
     * 课程ID
     */
    @ApiModelProperty(value="课程（实验）ID",name="courseId")
    @NotNull(message = "课程（实验）ID不能为空")
    private Long courseId;

    /**
     * 章节ID
     */
    @ApiModelProperty(value="章节ID",name="chapterId")
    @NotNull(message = "章节ID不能为空")
    private Long chapterId;

    /**
     * 节ID
     */
    @ApiModelProperty(value="节ID",name="sectionId")
    @NotNull(message = "节ID不能为空")
    private Long sectionId;

    /**
     * 资源ID
     */
    @ApiModelProperty(value="资源ID",name="resourceId")
    @NotNull(message = "资源I不能为空")
    private Long resourceId;


    /**
     * 学习状态，1 开始学习，2：学习完成
     */
    @ApiModelProperty(value="学习状态，1 开始学习，2：学习完成",name="type")
    @NotNull(message = "学习状态不能为空")
    private Integer type;

    private  Double schedule;

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Long getChapterId() {
        return chapterId;
    }

    public void setChapterId(Long chapterId) {
        this.chapterId = chapterId;
    }

    public Long getSectionId() {
        return sectionId;
    }

    public void setSectionId(Long sectionId) {
        this.sectionId = sectionId;
    }

    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Double getSchedule() {
        return schedule;
    }

    public void setSchedule(Double schedule) {
        this.schedule = schedule;
    }
}
